package kr.or.javacafe.board.dao;

import java.util.*;

import kr.or.javacafe.board.domain.*;

public interface BoardDAO {

	public List<Article> selectPreviewNoticeArticle();
	public List<Article> selectPriviewRecentArticle();
	
	public List<Article> selectArticleList(Article article);
	public int selectArticleListCount(Article article);
	public Bbs selectBbs(Bbs bbs);
	public Article selectArticle(int atcNo);
	
	public ArticleFile selectDownloadFile(ArticleFile articleFile);
	
	public int selectArticleNoSeq();
	public int selectBbsThreadNo(String bbsId);
	public void insertArticle(Article article);
	public void insertArticleFile(ArticleFile file);
	public void updateArticle(Article article);
	public void deleteArticle(Article article);
	public void deleteArticleFile(ArticleFile file);
	public void updateReplyArticle(Article article);
	
	public List<Comment> selectCommentList(Comment comment);	
	public void insertComment(Comment comment);
	public void deleteComment(Comment comment);
}
